﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PolePosition.v3.EntityLibrary
{
    [DataContract(Namespace = "http://Chfa.DataContracts/2007/10", Name = "LoginEntity")]
    public class LoginEntity
    {
        public enum LoginUserTypes
        {
            Unknown,
            Vendor,
            Utility,
            PPI
        }

        [DataMember()]
        public bool Success { get; set; }

        [DataMember()]
        public LoginUserTypes LoginUserType { get; set; }

        [DataMember()]
        public VendorEntity Vendor { get; set; }

        [DataMember()]
        public VendorContactEntity VendorContact { get; set; }

        [DataMember()]
        public UtilityEntity Utility { get; set; }

        [DataMember()]
        public UtilityContactEntity UtilityContact { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<ProjectEntity> Projects { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<UtilityPolygonEntity> Polygons { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<UtilityEntity> Utilities { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<UtilityContactEntity> UtilityContacts { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<VendorEntity> Vendors { get; set; }

        [DataMember()]
        public ProjectCommon2.Generics.EntityCollection<VendorContactEntity> VendorContacts { get; set; }
    }
}
